projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3d81a
)
(ido-visit-buffer): Use buffer name if buffer arg is a buffer.
author
Kim F. Storm
<storm@cua.dk>
Tue, 5 Sep 2006 10:26:35 +0000
(10:26 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Tue, 5 Sep 2006 10:26:35 +0000
(10:26 +0000)
lisp/ido.el
patch
|
blob
|
history
diff --git
a/lisp/ido.el
b/lisp/ido.el
index 2d531728b67ee261e36e13824ae97b22ce322991..797827eafd40f9c405a3d062e2ff4c6fd1073c65 100644
(file)
--- a/
lisp/ido.el
+++ b/
lisp/ido.el
@@
-3781,7
+3781,8
@@
for first matching file."
(defun ido-visit-buffer (buffer method &optional record)
"Switch to BUFFER according to METHOD.
Record command in `command-history' if optional RECORD is non-nil."
-
+ (if (bufferp buffer)
+ (setq buffer (buffer-name buffer)))
(let (win newframe)
(cond
((eq method 'kill)